# def demo():
#     print("这个是测试涵数")


# 定义字典(非空)元素的列表
login_data = [
    {"username": "13488888888", "password": "123456"},
    {"username": "", "password": "123456"},
    {"username": "13800000001", "password": ""},
    {"username": "13800000001", "password": "123"}
]
# 1.先实现业务功能 (函数)
def login(phone, pwd):
    """
    登录判断函数
    :param phone: 手机号
    :param pwd: 密码
    :return: 无
    """
    if phone == "13488888888" and pwd == "123456":
        print("登录成功")
    else:
        print("登录失败")

#
# # 计数器
# num = 1
# # for i in login_data:
# #     # 获取账号密码
# #     phone = i.get("username")
# #     pwd = i.get("password")
# #     print(f"第{num}次测试")
# #     # 调用函数
# #     login(phone, pwd)
# #     # 调用一次计数器增1
# #     num += 1


# 定义函数
def login(phone):
    """
    模拟登录
    :param phone: 验证手机号
    :return: 返回账号的结果
    """
    # 模拟登录
    if phone == "13488888888":
        return "账号正确"
    else:
        return "账号错误"
    assert "账号错误" == login("13800000001")
    assert "正确" in login("13488888888")


def get_max(num1, num2):
    """获取较大值函数"""
    if num1 > num2:
        return num1
    else:
        return num2
    print(get_max(10, 20))
